#ifndef TOOLS_H
#define TOOLS_H

#include "ToolBarBase.h"
#include "Tools/ToolState.h"
#include <QButtonGroup>

class Tools : public ToolBarBase
{
    Q_OBJECT

public:
    Tools(QWidget *parent = Q_NULLPTR);
    virtual ~Tools();
private:
    void initToolButton();
    void connectSignalToSlots();
    virtual void changeEvent(QEvent *event);
    void initTrans();

private slots:
    void onToolButtonChanged(int index);

private:
    QButtonGroup* m_pToolButtonGroup;

    QToolButton* m_pPencilButton;
    QToolButton* m_pPaintBrushButton;
    QToolButton* m_pAirBrushButton;
    QToolButton* m_pInkButton;
    QToolButton* m_pEraserButton;
    QToolButton* m_pBlurorSharpenButton;
    QToolButton* m_pDodgeorBurnButton;
    QToolButton* m_pSmudgeButton;
    QToolButton* m_pBucketFillButton;

    QToolButton* m_pRectangleSelectButton;
    QToolButton* m_pEllipseSelectButton;
    QToolButton* m_pFreeSelectButton;

    QToolButton* m_pMoveButton;
    QToolButton* m_pRotateButton;
    QToolButton* m_pScaleButton;
    QToolButton* m_pFlipButton;

    QToolButton* m_pPathsButton;
    QToolButton* m_pColorPickerButton;
    QToolButton* m_pZoomButton;
};

#endif // TOOLS_H
